<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- $Id: AcceptPayment_form.php,v 1.7 2009/04/02 05:44:40 thomas Exp $ -->
<?php
   $step = $_GET['step'];
   $brand = $_GET['BRAND'];
   switch($brand) {
      case 'AMEX':
      case 'DINERS':
      case 'JCB':
      case 'MASTERCARD':
      case 'VISA':
         $ptype = 'CC';
         break;
      case "ATOS":;
      case 'HOBEX-AT':
      case 'HOBEX-DE':
      case 'HOBEX-NL':
         $ptype = 'ELV';
         break;
      case 'BA':
      case '093':
      case '011':
      case 'BAWAG':
      case '101':
      case 'ERSTE':
      case '015':
      case 'HYPO':
      case '002':
      case '109':
      case '029':
      case 'RZB':
      case '019':
      case '107':
         $ptype = 'EPS';
         break;
      case 'ONE':
      case 'ORANGE':
      case 'T-MOBILE':
         $ptype = 'MIA';
         break;
      case 'PSC':
      case 'CASH-TICKET':
         $ptype = 'PSC';
         break;
      default:
         $ptype = $brand;
         break;
   }
?>
<html>
   <head>
      <title>AcceptPayment Test</title>
   </head>
   <body>
   <h1>mPAY24 AcceptPayment Testseite</h1>
   <form action="AcceptPayment_form.php">
      <input type="hidden" value="1" name="step"/>
      <p><select name="BRAND" size="1">
   <optgroup label="CC">
      <option value="AMEX"       <?php if($step == 1 && $brand == 'AMEX'      ) echo "selected=\"selected\"";?>>AMEX       - American Express                </option>
      <option value="DINERS"     <?php if($step == 1 && $brand == 'DINERS'    ) echo "selected=\"selected\"";?>>DINERS     - Diners Club                     </option>
      <option value="JCB"        <?php if($step == 1 && $brand == 'JCB'       ) echo "selected=\"selected\"";?>>JCB        - JCB                             </option>
      <option value="MASTERCARD" <?php if($step == 1 && $brand == 'MASTERCARD') echo "selected=\"selected\"";?>>MASTERCARD - MasterCard/MasterCard SecureCode</option>
      <option value="VISA"       <?php if($step == 1 && $brand == 'VISA'      ) echo "selected=\"selected\"";?>>VISA       - VISA/Verified by VISA           </option>
   </optgroup>
   <optgroup label="ELV">
      <option value="ATOS"     <?php if($step == 1 && $brand == 'ATOS'    ) echo "selected=\"selected\"";?>>ATOS     - Lastschrift von deutschem Bankkonto (via Atos Origin)      </option>
      <option value="HOBEX-AT" <?php if($step == 1 && $brand == 'HOBEX-AT') echo "selected=\"selected\"";?>>HOBEX-AT - Lastschrift von &ouml;sterreichischem Bankkonto (via hobex)</option>
      <option value="HOBEX-DE" <?php if($step == 1 && $brand == 'HOBEX-DE') echo "selected=\"selected\"";?>>HOBEX-DE - Lastschrift von deutschem Bankkonto (via hobex)            </option>
      <option value="HOBEX-NL" <?php if($step == 1 && $brand == 'HOBEX-NL') echo "selected=\"selected\"";?>>HOBEX-NL - Lastschrift von niederl&auml;ndischem Bankkonto (via hobex)</option>
   </optgroup>
   <optgroup label="EPS">
      <option value="093"   <?php if($step == 1 && $brand == '093'  ) echo "selected=\"selected\"";?>>ARZ/093 - Bank f&uuml;r &Auml;rzte und Freie Berufe                         </option>
      <option value="011"   <?php if($step == 1 && $brand == '011'  ) echo "selected=\"selected\"";?>>ARZ/011 - Bankhaus Carl Sp&auml;ngler &amp; Co. AG                          </option>
      <option value="BAWAG" <?php if($step == 1 && $brand == 'BAWAG') echo "selected=\"selected\"";?>>BAWAG   - BAWAG P.S.K. Gruppe, easybank, SPARDA Bank                        </option>
      <option value="101"   <?php if($step == 1 && $brand == '101'  ) echo "selected=\"selected\"";?>>ARZ/101 - Die &ouml;sterreichischen Volksbanken, Immo-Bank, G&auml;rtnerbank</option>
      <option value="ERSTE" <?php if($step == 1 && $brand == 'ERSTE') echo "selected=\"selected\"";?>>ERSTE   - Erste Bank Sparkasse                                              </option>
      <option value="015"   <?php if($step == 1 && $brand == '015'  ) echo "selected=\"selected\"";?>>ARZ/015 - Hypo Alpe-Adria-Bank AG, HYPO Alpe-Adria-Bank International AG    </option>
      <option value="HYPO"  <?php if($step == 1 && $brand == 'HYPO' ) echo "selected=\"selected\"";?>>HYPO    - HYPO Ober&ouml;sterreich                                          </option>
      <option value="002"   <?php if($step == 1 && $brand == '002'  ) echo "selected=\"selected\"";?>>ARZ/002 - Hypo Tirol Bank AG                                                </option>
      <option value="109"   <?php if($step == 1 && $brand == '109'  ) echo "selected=\"selected\"";?>>ARZ/109 - Investkreditbank AG                                               </option>
      <option value="029"   <?php if($step == 1 && $brand == '029'  ) echo "selected=\"selected\"";?>>ARZ/029 - Nieder&ouml;sterreichische Landesbank-Hypothekenbank AG           </option>
      <option value="RZB"   <?php if($step == 1 && $brand == 'RZB'  ) echo "selected=\"selected\"";?>>RZB     - Raiffeisen Bankengruppe                                           </option>
      <option value="BA"    <?php if($step == 1 && $brand == 'BA'   ) echo "selected=\"selected\"";?>>BA      - UniCredit Bank Austria AG                                         </option>
      <option value="019"   <?php if($step == 1 && $brand == '019'  ) echo "selected=\"selected\"";?>>ARZ/019 - Vorarlberger Landes- und Hypothekenbank AG                        </option>
      <option value="107"   <?php if($step == 1 && $brand == '107'  ) echo "selected=\"selected\"";?>>ARZ/107 - VR-Bank Braunau                                                   </option>
   </optgroup>
   <option value="GIROPAY" <?php if($step == 1 && $brand == 'GIROPAY') echo "selected=\"selected\"";?>>GIROPAY - giropay           </option>
   <option value="MAESTRO" <?php if($step == 1 && $brand == 'MAESTRO') echo "selected=\"selected\"";?>>MAESTRO - Maestro SecureCode</option>
   <optgroup label="MIA">
      <option value="ONE"      <?php if($step == 1 && $brand == 'ONE'     ) echo "selected=\"selected\"";?>>ONE      - paybox</option>
      <option value="ORANGE"   <?php if($step == 1 && $brand == 'ONE'     ) echo "selected=\"selected\"";?>>ORANGE   - paybox</option>
      <option value="T-MOBILE" <?php if($step == 1 && $brand == 'T-MOBILE') echo "selected=\"selected\"";?>>T-MOBILE - paybox</option>
   </optgroup>
   <option value="PB"     <?php if($step == 1 && $brand == 'PB'    ) echo "selected=\"selected\"";?>>PB     - paybox</option>
   <option value="PAYPAL" <?php if($step == 1 && $brand == 'PAYPAL') echo "selected=\"selected\"";?>>PAYPAL - PayPal</option>
   <optgroup label="PSC">
      <option value="PSC"         <?php if($step == 1 && $brand == 'PSC'        ) echo "selected=\"selected\"";?>>PSC         - paysafecard</option>
      <option value="CASH-TICKET" <?php if($step == 1 && $brand == 'CASH-TICKET') echo "selected=\"selected\"";?>>CASH-TICKET - CASH-TICKET</option>
   </optgroup>
   <option value="QUICK" <?php if($step == 1 && $brand == 'QUICK') echo "selected=\"selected\"";?>>QUICK - @Quick</option>
</select></p>
      <p><input type="submit" value="Zahlungsmittel w&auml;hlen"/></p>
   </form>
   <form action="initmpay24_a.php" method="post">
      <input type="hidden" value="<?php echo $ptype;?>" name="P_TYPE"/>
      <input type="hidden" value="<?php echo $brand;?>" name="BRAND"/>
      <p>Betrag: <input name="PRICE" value="10" readonly="readonly"/> Cent</p>
      <p>W&auml;hrung: <input name="CURRENCY" value="EUR" readonly="readonly"/></p>
      <p><?php switch($ptype) { 
         case "CC": echo "Kreditkartennummer: "; break; 
         case "ELV": echo "Kontonummer: "; break; 
         case "MIA": echo "Handynummer/paybox Nummer: "; break; 
         case "PB": echo "Mobiltelefonnr.: "; break; 
         case "GIROPAY": echo "Bankleitzahl (BLZ):"; break; }?>
         <input name="<?php switch($ptype){ 
            case "GIROPAY": echo "SORT_CODE"; break; 
            default: echo "IDENTIFIER"; break;} ?>" 
            <?php if($step < 1 || ($ptype == "EPS" || $ptype == "PSC" || $ptype == "QUICK")) 
            echo "readonly"; if($step == 1 && ($ptype == 'MIA' || $ptype == 'PB')) 
            echo "VALUE=\"436\"";?>/></p>
      <p><?php switch($ptype) { 
   case "CC": 
      echo "CVC, CVN, CVC2, CVV: "; 
      break; 
   case "ELV": 
      echo "Bankleitzahl (BLZ): "; 
      break; 
}?><input<?php switch($ptype) { 
   case "CC": 
      echo " name=\"CVC\" maxlength=\"4\""; 
      break; 
   case "ELV": 
      echo "name=\"SORT_CODE\""; 
      break; 
   default: 
      echo " readonly"; 
      break; 
} ?>/></p>
      <p><?php switch($ptype){
   case "CC":
      echo "Expiry: <input name=\"EXPIRY\" maxlength=\"4\">";
      break;
   case "MAESTRO":
      echo "Expiry: <input name=\"EXPIRY\" maxlength=\"4\">";
      break;
}?></p>
      <p><input type="submit" value="Zahlung durchf&uuml;hren" <?php if($step < 1) echo "disabled";?>/></p>
      </form>
      </body>
</html>
